package com.example.fireassistant_server.mapper;

import com.example.fireassistant_server.dto.company.CompanyCreateRequest;
import com.example.fireassistant_server.dto.company.CompanyDto;
import com.example.fireassistant_server.dto.company.CompanyUpdateRequest;
import com.example.fireassistant_server.dto.wechat.WechatUserCreateRequest;
import com.example.fireassistant_server.entity.Company;
import com.example.fireassistant_server.entity.WeChatUser;
import com.example.fireassistant_server.vo.CompanyVo;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface CompanyMapper {

    CompanyVo toVo(CompanyDto companyDto);

    Company createEntity(CompanyCreateRequest companyCreateRequest);

    CompanyDto toDto(Company company);

    Company updateEntity(@MappingTarget Company company, CompanyUpdateRequest companyUpdateRequest);
}
